package com.zzl.finance.data.dto;

import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 银行账户表
 *
 * @author hyt
 */
@Data
@ApidocModel
public class BankAccountAddDto {
    @ApidocModelProperty(description = "对公账户",example = "555")
    @NotEmpty(message = "对公账户不能为空")
    private String corporateAccount;

    @ApidocModelProperty(description = "开户行全称",example = "兴业银行")
    @NotEmpty(message = "开户行全称不能为空")
    private String fullNameOpeningBank;

    @ApidocModelProperty(description = "开户网点",example = "开户网点")
    @NotEmpty(message = "开户网点不能为空")
    private String accountOpeningOutlet;

    @ApidocModelProperty(description = "地区code",example = "310100")
    @NotEmpty(message = "地区code不能为空")
    private String areaId;

    @ApidocModelProperty(description = "账户类型 0基本户1一般户2专用3临时",example = "0")
    @NotNull(message = "账户类型不能为空")
    private Integer accountType;

    @ApidocModelProperty(description = "开户行所在省",example = "上海")
    @NotEmpty(message = "开户行所在省不能为空")
    private String province;

    @ApidocModelProperty(description = "开户行所在市",example = "上海市")
    @NotEmpty(message = "开户行所在市不能为空")
    private String city;

    @ApidocModelProperty(description = "备注")
    private String remark;

    @ApidocModelProperty(description = "所属企业id",example = "1")
    @NotBlank(message = "所属企业id不能为空")
    private String enterpriseId;

    @ApidocModelProperty(description = "启用状态 0停用 1启用",example = "true")
    @NotNull(message = "启用状态不能为空")
    private boolean stopState;


}